package com.itheima.test0905.test31;
//鹦鹉
public class parrot extends birds{

    private String name;
    private String breed;

    public parrot(String feather, String food, String speed, String color, String name, String breed) {
        super(feather, food, speed, color);
        this.name = name;
        this.breed = breed;
    }

    public parrot() {

    }

    public void isPet(){
        System.out.println("鹦鹉可以作为人们的宠物");
    }

    public void speak(){
        System.out.println("鹦鹉可以模仿人的声音");
    }
}
